package org.example.utils;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * ClassName: ElderlyUpdateRequest
 * Description:
 *
 * @Author Kotaro
 * @Create 2024/12/9 9:14
 * @Version 1.0
 */
@Data
public class ElderlyUpdateRequest {
    @NotNull
    String elderlyId; //老人id
    String password; //密码
    String residence; //地址
    String contactNumber; // 联系电话
    Boolean selfCare; //能否自理
    Boolean isLivingAlone; //是否独居
    String familyContactNumber; //家属联系电话
    BigDecimal weight; // 体重
    String disease; // 疾病
    String remarks; //备注

    public ElderlyUpdateRequest() {
    }

    public ElderlyUpdateRequest(String elderlyId, String password, String residence, String contactNumber, Boolean selfCare, Boolean isLivingAlone, String familyContactNumber, BigDecimal weight, String disease, String remarks) {
        this.elderlyId = elderlyId;
        this.password = password;
        this.residence = residence;
        this.contactNumber = contactNumber;
        this.selfCare = selfCare;
        this.isLivingAlone = isLivingAlone;
        this.familyContactNumber = familyContactNumber;
        this.weight = weight;
        this.disease = disease;
        this.remarks = remarks;
    }
}
